package com.runa.monitor.platinterface.extend.third.newester.vo;

import com.runa.monitor.platinterface.extend.third.newester.validator.Date;
import org.apache.pulsar.shade.io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Digits;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.math.BigDecimal;

/**
 * @Author: lyd
 * @Description:
 * @Date: 2021/11/3 10:21
 * @Version: 1.0
 */
public class TemperaturePressureDockingDetailVo {

    @NotBlank
    @Size(max = 15)
    @ApiModelProperty(value = "编号")
    private String meterSerialNo;

    @ApiModelProperty(value = "0：抄通 1：未抄通")
    @NotBlank
    @Size(max = 1)
    private String state;

    @ApiModelProperty(value = "失败原因")
    @Size(max = 20)
    private String reason;

    @NotBlank
    @Date(datePattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "任务时间：yyyy-MM-dd HH:mm:ss")
    private String planTime;

    @ApiModelProperty(value = "读取时间：yyyy-MM-dd HH:mm:ss")
    @Date(datePattern = "yyyy-MM-dd HH:mm:ss")
    private String readTime;

    @ApiModelProperty(value = "供温，单位：℃，最多整数8位，小数2位")
    @Digits(integer = 8, fraction = 2)
    private BigDecimal supplyTemperature;

    @ApiModelProperty(value = "回温，单位：℃，最多整数8位，小数2位")
    @Digits(integer = 8, fraction = 2)
    private BigDecimal returnTemperature;

    @ApiModelProperty(value = "供压，单位：kpa，最多整数8位，小数2位")
    @Digits(integer = 8, fraction = 2)
    private BigDecimal supplyPressure;

    @ApiModelProperty(value = "回压，单位：kpa，最多整数8位，小数2位")
    @Digits(integer = 8, fraction = 2)
    private BigDecimal returnPressure;

    @ApiModelProperty(value = "电池电压，单位：mv，最多整数8位，小数2位")
    @Digits(integer = 8, fraction = 2)
    private BigDecimal batteryPressure;

    @ApiModelProperty(value = "状态码")
    @Size(max = 4)
    private String stateCode;

    @ApiModelProperty(value = "信号强度")
    @Size(max = 200)
    private String signal;

    public String getMeterSerialNo() {
        return meterSerialNo;
    }

    public void setMeterSerialNo(String meterSerialNo) {
        this.meterSerialNo = meterSerialNo;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getPlanTime() {
        return planTime;
    }

    public void setPlanTime(String planTime) {
        this.planTime = planTime;
    }

    public String getReadTime() {
        return readTime;
    }

    public void setReadTime(String readTime) {
        this.readTime = readTime;
    }

    public BigDecimal getSupplyTemperature() {
        return supplyTemperature;
    }

    public void setSupplyTemperature(BigDecimal supplyTemperature) {
        this.supplyTemperature = supplyTemperature;
    }

    public BigDecimal getReturnTemperature() {
        return returnTemperature;
    }

    public void setReturnTemperature(BigDecimal returnTemperature) {
        this.returnTemperature = returnTemperature;
    }

    public BigDecimal getSupplyPressure() {
        return supplyPressure;
    }

    public void setSupplyPressure(BigDecimal supplyPressure) {
        this.supplyPressure = supplyPressure;
    }

    public BigDecimal getReturnPressure() {
        return returnPressure;
    }

    public void setReturnPressure(BigDecimal returnPressure) {
        this.returnPressure = returnPressure;
    }

    public BigDecimal getBatteryPressure() {
        return batteryPressure;
    }

    public void setBatteryPressure(BigDecimal batteryPressure) {
        this.batteryPressure = batteryPressure;
    }

    public String getStateCode() {
        return stateCode;
    }

    public void setStateCode(String stateCode) {
        this.stateCode = stateCode;
    }

    public String getSignal() {
        return signal;
    }

    public void setSignal(String signal) {
        this.signal = signal;
    }
}
